package com.example.tys.baseapplication.net_tcp.frame;


import com.example.tys.baseapplication.net_tcp.frame.packet.Packet;

import java.util.Arrays;

/**
 *
 * @author tys
 * @date 2019/5/3
 */

public class PacketResponse extends Packet {
    public PacketResponse(String uniqueId) {
        super(uniqueId);
    }

    private byte[] head;
    private byte[] data;

    public byte[] getHead() {
        return head;
    }

    public void setHead(byte[] head) {
        this.head = head;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "PacketResponse{" +
                "uniqueId='" + uniqueId + '\'' +
                ", head=" + Arrays.toString(head) +
                ", data=" + Arrays.toString(data) +
                '}';
    }
}
